Àtụ:Wikimacro usage

Shí Wikipedia, njikotá édémédé nke onyobulạ
Jump to navigation Jump to search
Edit-paste.svg
This is the template documentation page for Àtụ:Wikimacro usage.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.


Note page has hidden operative code when viewed directly.


Version at a glance for M:TSP [ Template:Wikimacro usage ]
Version Origin Change Description datestamp and programmer

Ver: E Meta Add usage <pre-/pre> 'block' and adjust formatting on main text displayed FrankB 08:13, 16 March 2007 (UTC)

Ver: D Meta (b)Rework and update this table with earliest edits.
(b) Compatibility for Wikibooks, Template:Tl2 has prior use, so substituting on Meta Mastercopy for export there. Re-export to others unneeded at this time
(a) and (b) [same save]
FrankB 22:44, 13 March 2007 (UTC)

Ver:_,a Wikipedia (a): Origin--one of several interwiki templates for documentation needs to sisters; cut and paste excerpts from various templates reworked to call this page.
_: (Genesis - consolidated usage for all the macro types used for interwiki portability begun with: {subst:interwiki doc page pattern})
(a)Iterim: FrankB 08:42, 13 February 2007
_: FrankB 03:27, 7 February 2007 (UTC)


This is a common usage page for the sister macro templates:

{{Wpd}} / {{Wbk}} / {{Cms}} / {{Wdy}} / {{Wqt}} / {{Wsp}} / {{Wsr}} / {{Wvy}} etcetera.

This page takes numeric parameters thru which normal control mnemonics may be defined.
{{#if:{{{1|}}}|<!--- These if's for passing exceptions (e.g. W2 no longer on Wp) 
----- Passing equals sign not successful... so adding here so need only pass the mnemonic
---->|{{{1}}}={{#if:{{{2|}}}|<!---
---->|{{{2}}}=}}{{#if:{{{3|}}}|<!---
---->|{{{3}}}=}}{{#if:{{{4|}}}|<!---
---->|{{{4}}}=}}<!---
---->}}... these act as inputs to interwikitmp-grp


This page takes one other parameter:

    RDIR = defined or not defined, 
    ... use this on redirects pages of the old templates names
    now redirects such as 'W2', 'W2c', 'Wd', 'WD', and 'Mw', etc.
    and include this page instead of using direct inclusions of 
    interwikitmp-grp. This provides for one place to update and maintain
    auto-catgegorization and participating sister projects, etc.
    
    When RDIR defined, properly pipetricks PAGENAME to indicate redirects pages.



Similar templates at English sister projects [edit]
Wikimedia-logo.svg mta Meta-wiki Wikimacro usage
Wikipedia-logo.png wpd Wikipedia Wikimacro usage
Commons-logo.svg cms Commons Wikimacro usage
Wikibooks-logo.svg wbk Wikibooks Wikimacro usage
Wikispecies-logo.svg wsp Wikispecies Wikimacro usage
Wikiversity-logo.svg wvy Wikiversity Wikimacro usage
This project under construction ...
Pardon our appearance whist we remodel,
pull the engine, and change the tires.




On {{Wpd}} / {{Wbk}} / {{Cms}} / {{Wdy}} / {{Wqt}} / {{Wsp}} / {{Wsr}} / {{Wvy}} (sister templates)
  • All such macro's enable calls from any sister project to use the same call and get the same output result. This feature is chiefly used in category pages being linked by the various interwiki category to category templates such as the paired tagging templates: Commonscat1A & Template:Wikipediacat1A etcetera, including such for other sister projects like the omnibus template {{interwikicat-grp}} by simply copying the same language between the two matching categories.
  • Each connects to the general 'main' namespace of the given sister. Prefixing other namespaces such as Template: or Category:, even talk spaces will link to such namespaces fine. In that case, the pipe-trick parameter {{{2}}} may be given to create a trimmer link of more pleasing appearance.
  • 'Cms' is primarily useful for see also lists on en.wikipedia or other direct accessing needs into a commons page. (Talk to Talk page, for example).
Notes on genesis and equivalence
'W2' (ALSO: 'W' on many English sister projects, but with some name collisions on others) and 'W2c' interwiki templates came out of efforts to tag and interlink key categories on the Wikimedia Commons and En.Wikipedia, as the two places foreign language wiki's tie into and plant interwiki links. Mw (Meta) and Wd (Wiktionary) soon followed on the commons, wikpedia and Meta for inline referencing and direct page linking. All were written to enhance text portability when tagging and linking categories and then templates with common hyper linked prose to appropriate reference pages.
These four originals are now exist only 'as redirects' to the more mnemonic 'Wpd', 'Cms', 'Mta' and 'Wdy' respectively adopting the three letter near-mnemonic's of Wikiproject template sharing project, which is standardizing templates to enhance productivity on all the sister projects.
Some like the commons template {{Cms}}, {{Wbk}}, {{Wdy}}, and {{Wsp}}, require logic to bypass their own prefix on their own site to enable interwiki portability or display of local links. (This is to say, that without such logic, these would display a full url, which does not reveal bad links, but full sitename prefixes are even worse, as evince always as redlinks).