Template:Tt0
From Wikiversity
| Similar templates at English sister projects [edit] | |||
|---|---|---|---|
| wpd | Wikipedia | Tt0 | |
| cms | Commons | Tt0 | |
| wbk | Wikibooks | Tt0 | |
| wsp | Wikispecies | Tt0 | |
| wvy | Wikiversity | Tt0 | |
Version-at-a-glance:
Ver: 0a-- source: en.Wikiversity
-- -- Noticed was not working reliably off en.wikipedia... install interlingual switching {{#switch:{{{L}}}|#default={{#if:{{{L|}}}|{{{L|}}}:}}|en=}}{{WPD}}
{{Subst:Bull}}Unknown whether order with simple will work on that site. // FrankB 03:42, 21 August 2008 (UTC)
Ver: 0 -- source: en.Wikiversity
-- Genesis-Develop as part of commons internationalization/interwiki linking work. // FrankB 17:24, 20 August 2008 (UTC)}}}}}}
- Purpose
- an inline pipetricked linking template to link to an template on en.wikipedia as if were {{Tl}}.
- Like {{wpd}} {{Wpdt}} creates a portable link that works interwiki
- Existence on en.wikipedia provides portable usage linking.
- If given no argument-1 ({{{1}}}), this utility assumes you want to link to
[[W:Template:{{PAGENAME}}]].
- Developed from this:
[[w:simple:Template:{{PAGENAME}}]],code snippet, which is known to work.[1]
Version-at-a-glance:
Ver: 3d -- source: en.Wikiversity
-- V:3c precursor, as Tt0 && Template:Wvy-t; V: 3d--Wikiversity -- move into main template space and install {{Ver@glance}}. // FrankB 03:42, 21 August 2008 (UTC)
Ver: -- source: Meta-wiki
-- {{{6}}}}}}}}}
- This macro displays the same link, in the format no matter what the sister project {{{SITENAME}}}.
- It incorporates a languge parameter 'L' or 'LANG' which can be defined to access other language pages on the wikiversity sister project from within any other.
- It's used by WikiProject Template sharing to make usage text portable.
{{wvy|L=de|Wikiversity:FAQ }} ↔ {{wvy|L=it|Wikiversity:FAQ}} ↔ {{Wvy|L=en|Wikiversity:FAQ}} ↔ {{Wvy|Wikiversity:FAQ}} produces:- Wikiversity:FAQ
Wikiversity:FAQ ↔ Wikiversity:FAQ Wikiversity:FAQ ↔ Wikiversity:FAQ Wikiversity:FAQ ↔ Wikiversity:FAQ Wikiversity:FAQ
- Colon in switch problem also bites, like leading colon out of #if:
- operation ability now reversed... 1st, 2nd, 4th links now broken by newlines, but 3rd link which failed is now connecting to http://en.wikiversity.org/wiki/Wikiversity:FAQ
- test 2 -- colon to beginning again
- 3rd and 4th links form properly to en.Wikiversity
- 1st forms badlink: http://de.wikipedia.org/wiki/wikiversity:Wikiversity:FAQ
- 2nd forms badlink: http://it.wikipedia.org/wiki/wikiversity:Wikiversity:FAQ
- But one wonders whether that form would be fine if restored to abbreviation format...
- Saving this, then trying that, to report effects.
- Lied, didn't save, but did alter WVY to see if links "repair themselves", so this combo looks good to go! These versions working in all modes Here on wikipedia.
- test-3, Import "working version from en.wikipedia.
- Local {WVY} definition=||
- results
-
- Cleansweep (L to R): http://de.wikiversity.org/wiki/Wikiversity:FAQ http://it.wikiversity.org/wiki/Wikiversità:FAQ http://en.wikiversity.org/wiki/Wikiversity:FAQ http://en.wikiversity.org/wiki/Wikiversity:FAQ
- So updating other sisters. Need to test simple though.
This 'Wikimacro usage' template documentation is transcluded for all {{ Wikimacro usage}} tagged templates [edit].Masterpage
| Similar templates at English sister projects [edit] | |||
|---|---|---|---|
| wpd | Wikipedia | Tt0 | |
| cms | Commons | Tt0 | |
| wbk | Wikibooks | Tt0 | |
| wsp | Wikispecies | Tt0 | |
| wvy | Wikiversity | Tt0 | |
This is a common usage page for the sister macro templates:
{{Mta}} / {{Wbk}} / {{Cms}} / {{Wdy}} / {{Wqt}} / {{Mdw}} / {{Wpd}} / {{Wsp}} / {{Wsr}} / {{Wvy}} etcetera.
and the Wikimedia Commons' category space accessing template
- {{W2c}}
Purpose: Tt0 is one of a family of interwiki Macro templates which will give identical output for all Wikimedia Foundation sister projects;
- All such macro's enable calls from any sister project to use the same call and get the same output result.
- 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' (alternative name ({{Cmscat}}) interwiki templates came out of efforts to tag, annotate 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. 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).