Difference between revisions of "Template:Country sub-page breadcrumb"

From World Naked Bike Ride
Jump to: navigation, search
(cat fix)
(Revised. Populating also the (existing [with 1 member: Australia] but by this edit for the first time populated) Category:Country sub-pages (the equivalent of Category:Ride location sub-pages). User manual with translation support.)
Line 1: Line 1:
[[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country}}}]] > {{PAGENAME}}
+
[[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country|Missing 'Country' parameter}}}]]&#8202;&#8202;<span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|{{{2|}}}}}}</span> > {{PAGENAME}} <span class="noprint" style="font-size:0.75em;">&bull;&nbsp;&nbsp;[http://www.google.com/search?q=%28{{urlencode:{{PAGENAME}}}}%29+%28%22Naked+Bike+Ride%22+OR+%22WNBR%22%29 Google {{PAGENAME}} WNBR]</span></span><includeonly>[[Category:{{{Country|Missing 'Country' parameter for}}} sub-pages]][[Category:Country sub-pages|{{{Country}}}]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]<hr>What you see here above, is the mere result of calling this template ''without'' the compulsory parameter.{{Google translation link}}<span style="display:inline-block;font-size:88%;font-weight:700;margin-bottom:.75em;"><span style="font-variant:small-caps;letter-spacing:.3ex;padding:.18em 1ex .15em 1ex;color:gold;background-color:gray;">User manual</span><span style="padding:.18em .6ex .15em .8ex;background-color:gold;">To put the ''English instructions'' in another language, click its 2-character code in the above series.</span></span><br />In each sub-page of a country (i.e. serving that '''''entire''''' country or at least '''''multiple''''' ride locations in it), always at top of the text, use one of these <nowiki>{{...}}</nowiki> tags, in which 1 name must be passed:
[[Category: {{{Country}}} sub-page]]
 
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude><!--
 
  
 
+
This country name must be spelled exactly as it occurs in the <span class="notranslate" translate="no" lang="en">[[List of rides]]</span>, also the country suffix [the country name in other language(s)] if such occurs there (immediately underneath the country name):
USAGE: {{Template:Country sub-page breadcrumb|Country=EnterCountryHere}}
+
*USAGE 1: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country sub-page breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
 
+
In sub-pages only, the editor(s) of a country may chose whether the aforementioned suffix gets shown; if so, it comes behind an extra '|':  
 
+
*USAGE 2: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country sub-page breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en">|</span>''Country suffix''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
-->
+
In case this country suffix receives your markup with an '=' in it,<br />e.g. <span class="notranslate" translate="no" lang="en">&lt;span title<span style="color:#C99;">=</span>"..." class<span style="color:#C99;">=</span>"..." style<span style="color:#C99;">=</span>"..." lang<span style="color:#C99;">=</span>"..."&gt;</span>''suffix''<span class="notranslate" translate="no" lang="en">&lt;/span&gt;</span><br />one must apply USAGE 2BIS:
 +
*USAGE 2BIS: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country sub-page breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en">|1=</span>''Country suffix''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
 +
<p style="border:4px solid gold;padding:.3em 1ex .3em 1ex;font-weight:700;">This template must be called ''only'' from country sub-pages (not from e.g. their main country page or from a specific ride location page or sub-page).<br />There it shows a proper <span class="notranslate" translate="no" lang="en">[[wikipedia:breadcrumb navigation|'breadcrumb trail']]</span> and ensures putting that country sub-page (calling page name) into <span class="notranslate" translate="no" lang="en">Category:</span>''Country name'' <span class="notranslate" translate="no" lang="en">sub-page</span> (passed parameter + '<span class="notranslate" translate="no" lang="en">sub-pages</span>') and into <span class="notranslate" translate="no" lang="en">[[:Category:Country sub-pages]]</span>.</p></noinclude>

Revision as of 03:26, 3 May 2020

Home > List of rides [[List of rides#{{{Country}}}|>]] Missing 'Country' parameter   > Country sub-page breadcrumb •  Google Country sub-page breadcrumb WNBR


What you see here above, is the mere result of calling this template without the compulsory parameter.

Google translation: CZ / DE / EL / EN / ES / FR / IT / JA / KO / NL / PT / RU / ZH / ZT User manualTo put the English instructions in another language, click its 2-character code in the above series.
In each sub-page of a country (i.e. serving that entire country or at least multiple ride locations in it), always at top of the text, use one of these {{...}} tags, in which 1 name must be passed:

This country name must be spelled exactly as it occurs in the List of rides, also the country suffix [the country name in other language(s)] if such occurs there (immediately underneath the country name):

  • USAGE 1: {{Country sub-page breadcrumb|Country=Country name}}

In sub-pages only, the editor(s) of a country may chose whether the aforementioned suffix gets shown; if so, it comes behind an extra '|':

  • USAGE 2: {{Country sub-page breadcrumb|Country=Country name|Country suffix}}

In case this country suffix receives your markup with an '=' in it,
e.g. <span title="..." class="..." style="..." lang="...">suffix</span>
one must apply USAGE 2BIS:

  • USAGE 2BIS: {{Country sub-page breadcrumb|Country=Country name|1=Country suffix}}

This template must be called only from country sub-pages (not from e.g. their main country page or from a specific ride location page or sub-page).
There it shows a proper 'breadcrumb trail' and ensures putting that country sub-page (calling page name) into Category:Country name sub-page (passed parameter + 'sub-pages') and into Category:Country sub-pages.