Template:Title\Old: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(further modifications to strip whitespace and newlines)
 
(32 intermediate revisions by the same user not shown)
Line 4: Line 4:
;{{{titlename|{{PAGENAME}}}}}
;{{{titlename|{{PAGENAME}}}}}
| <!-- IncludeOnly -->
| <!-- IncludeOnly -->
{{!}}{{ #ifeq: {{{page}}} | {{{titlename|{{{page}}}}}} | [[{{{page}}}]] | [[{{{page}}}{{!}}{{{titlename}}}]] }}{{ #if: {{{maleonly|}}} | <nowiki>*</nowiki> }}{{ #if: {{{femaleonly|}}} | + }}
{{!}}{{ #ifeq: {{{page}}} | {{{titlename|{{{page}}}}}} | [[{{{page}}}]] | [[{{{page}}}{{!}}{{{titlename}}}]] }}{{ #switch: {{lc:{{{maleonly}}}}} |y|yes=<nowiki>*</nowiki>}}{{ #switch: {{lc:{{{femaleonly}}}}} |y|yes= + }}
}}
}}
{{ #ifeq: {{PAGENAME}} | {{{page}}}
{{ #ifeq: {{PAGENAME}} | {{{page}}}
| <!-- NoInclude -->
| <!-- NoInclude -->
{{ #if: {{{maleonly|}}} |
{{ #switch: {{lc:{{{maleonly}}}}} |y|yes=
: [[title requirement::{{strip|s=Must be male}}]] }}
: [[title requirement::{{strip|s=Must be male}}]] }}{{
{{ #if: {{{femaleonly|}}} |
#switch: {{lc:{{{femaleonly}}}}} |y|yes=
: [[title requirement::{{strip|s=Must be female}}]] }}
: [[title requirement::{{strip|s=Must be female}}]] }}{{
{{ #if: {{{1|}}} |
#if: {{{translation|}}} |
: [[title requirement::{{strip|s={{{1}}} }}]] }}
: Translation - {{{translation}}} }}{{
{{ #if: {{{2|}}} |
#if: {{{subcat|}}} |
{{#arraymap:{{{subcat}}}|,|x|[[title subcategory is::x| ]]|}}}}{{
: [[title requirement::{{strip|s={{{2}}} }}]] }}
#if: {{{diff|}}} | {{#ifeq:{{{diff}}}| 0 | [[title difficulty is::2000| ]] | [[title difficulty is::{{{diff}}}| ]] }}| }}{{
{{ #if: {{{3|}}} |
#if: {{{1|}}} |
: [[title requirement::{{strip|s={{{3}}} }}]] }}
: [[title requirement::{{strip|s={{{1}}} }}]] }}{{
{{ #if: {{{4|}}} |
#if: {{{2|}}} |
: [[title requirement::{{strip|s={{{4}}} }}]] }}
: [[title requirement::{{strip|s={{{2}}} }}]] }}{{
{{ #if: {{{5|}}} |
#if: {{{3|}}} |
: [[title requirement::{{strip|s={{{5}}} }}]] }}
: [[title requirement::{{strip|s={{{3}}} }}]] }}{{
{{ #if: {{{6|}}} |
#if: {{{4|}}} |
: [[title requirement::{{strip|s={{{6}}} }}]] }}
: [[title requirement::{{strip|s={{{4}}} }}]] }}{{
{{ #if: {{{7|}}} |
#if: {{{5|}}} |
: [[title requirement::{{strip|s={{{7}}} }}]] }}
: [[title requirement::{{strip|s={{{5}}} }}]] }}{{
{{ #if: {{{8|}}} |
#if: {{{6|}}} |
: [[title requirement::{{strip|s={{{8}}} }}]] }}
: [[title requirement::{{strip|s={{{6}}} }}]] }}{{
{{ #if: {{{9|}}} |
#if: {{{7|}}} |
: [[title requirement::{{strip|s={{{9}}} }}]] }}
: [[title requirement::{{strip|s={{{7}}} }}]] }}{{
{{ #if: {{{10|}}} |
#if: {{{8|}}} |
: [[title requirement::{{strip|s={{{10}}} }}]] }}
: [[title requirement::{{strip|s={{{8}}} }}]] }}{{
{{ #if: {{{11|}}} |
#if: {{{9|}}} |
: [[title requirement::{{strip|s={{{9}}} }}]] }}{{
#if: {{{10|}}} |
: [[title requirement::{{strip|s={{{10}}} }}]] }}{{
#if: {{{11|}}} |
: [[title requirement::{{strip|s={{{11}}} }}]] }}
: [[title requirement::{{strip|s={{{11}}} }}]] }}
| <!-- IncludeOnly -->
| <!-- IncludeOnly -->
Line 62: Line 67:
{{ #ifeq: {{PAGENAME}} | {{{page}}}
{{ #ifeq: {{PAGENAME}} | {{{page}}}
| <!-- NoInclude -->
| <!-- NoInclude -->
{{{titlename|{{{page}}}}}} is a [[:Category:Titles|title]] in the [[title category is::Category:{{{category}}} Titles|{{{category}}}]] Category. {{
{{{titlename|{{{page}}}}}} is a [[:Category:Titles|title]] in the [[title category is::Category:{{{category}}} Titles|{{{category}}}]] Category.
{{#switch:{{{category}}} | Survival 1 | Survival 2 | Survival 3=[[title category is::Category:Survival Titles| ]]{{cat|Survival Titles}} | Blunt | Ranged | Brawling | GenEdged | SpecEdged | Thrown | Pole | Slings | WeaponMaster | Shield=[[title category is::Category:Combat Titles| ]]{{cat|Combat Titles}} }}{{#switch:{{lc:{{{category}}}}}|bard|barbarian|cleric|empath|paladin|ranger|trader|thief|warrior mage=[[guild association is::{{lc:{{{category}}}}}| ]]|moon mage|sect|astrology=[[guild association is::moon mage| ]]}}{{cat|{{{category}}} Titles}}{{cat|Titles}}}}
#ifeq: {{{category}}} | Survival 1 | [[Category:Survival Titles]] }}{{
#ifeq: {{{category}}} | Survival 2 | [[Category:Survival Titles]] }}{{
#ifeq: {{{category}}} | Survival 3 | [[Category:Survival Titles]] }}{{
#ifeq: {{{category}}} | Blunt | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Ranged | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Brawling | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | GenEdged | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | SpecEdged | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Thrown | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Pole | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Slings | [[Category:Combat Titles]] }}{{
#ifeq: {{{category}}} | Shield | [[Category:Combat Titles]] }}
[[Category:{{{category}}} Titles]][[Category:Titles]]{{#switch:{{lc:{{{category}}}}}|bard|barbarian|cleric|empath|moon mage|paladin|ranger|trader|thief|warrior mage=[[guild association is::{{lc:{{{category}}}}}| ]]|astrology=[[guild association is::moon mage| ]]}}
}}
|
|
<div class="boilerplate metadata" id="Error!" style="{{divstylered}}"><center><b>Error!</b></center>
<div class="boilerplate metadata" id="Error!" style="{{divstylered}}"><center><b>Error!</b></center>
Line 91: Line 83:
|category=category
|category=category
|titlename=<span style="color:green;">title</span><sup style="color:blue;font-size:80%;">[1]</sup>
|titlename=<span style="color:green;">title</span><sup style="color:blue;font-size:80%;">[1]</sup>
|maleonly=<span style="color:orange;">yes</span><sup style="color:blue;font-size:80%;">[2]</sup>
|maleonly=<span style="color:orange;">yes/y/no/n</span><sup style="color:blue;font-size:80%;">[2]</sup>
|femaleonly=<span style="color:orange;">yes</span><sup style="color:blue;font-size:80%;">[2]</sup>
|femaleonly=<span style="color:orange;">yes/y/no/n</span><sup style="color:blue;font-size:80%;">[2]</sup>
|translation=
|subcat=cat1,cat2,cat3,cat4,etc.
|diff=
|Req1
|Req1
|Req2
|Req2
Line 100: Line 95:


* [1] -- Only need if pagename is different than title name (such as if there is a disambiguation)
* [1] -- Only need if pagename is different than title name (such as if there is a disambiguation)
* [2] -- Any value entered here will mark these both as "yes"; '''Warning''' bad things<sup>tm</sup> can happen if you enter both.
* [2] -- Adding "yes" or "y" will activate this field; '''Warning''' bad things<sup>tm</sup> can happen if you mark both.
* page -- will have to be manually changed if the page is ever moved.
* page -- will have to be manually changed if the page is ever moved.
* category -- what category of title this is.
* category -- what category of title this is.
* subcat -- Defines lesser categories, such as spellbook, necessary skills, etc. for correct semantic searches.
* diff -- Used to declare the relative difficulty to achieve the title. See [[Property:title difficulty is]] for information on how to determine the value.
* Req1 ... Req11 -- Each line (note, NO = sign) is the wikitext for that particular title requirement, if more requirements than detailed here are needed, just add them to the particular title page (as if more was allowed) and add a comment on this template's [[Template_talk:title|talk]] page.
* Req1 ... Req11 -- Each line (note, NO = sign) is the wikitext for that particular title requirement, if more requirements than detailed here are needed, just add them to the particular title page (as if more was allowed) and add a comment on this template's [[Template_talk:title|talk]] page.
[[Category:Templates]]
[[Category:Templates]]
* LEAVE UNUSED (and unneeded) values OUT COMPLETELY. (titlename for example is only needed if the titlename is different than the page-name, such as in Disambiguation issues)
* LEAVE UNUSED (and unneeded) values OUT COMPLETELY. (titlename for example is only needed if the titlename is different than the page-name, such as in Disambiguation issues)
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 November 2008

USAGE Information:

{{title
   |page={{subst:PAGENAME}}
   |category=category
   |titlename=title[1]
   |maleonly=yes/y/no/n[2]
   |femaleonly=yes/y/no/n[2]
   |translation=
   |subcat=cat1,cat2,cat3,cat4,etc.
   |diff=
   |Req1
   |Req2
   ....
   |Req11
 }}
  • [1] -- Only need if pagename is different than title name (such as if there is a disambiguation)
  • [2] -- Adding "yes" or "y" will activate this field; Warning bad thingstm can happen if you mark both.
  • page -- will have to be manually changed if the page is ever moved.
  • category -- what category of title this is.
  • subcat -- Defines lesser categories, such as spellbook, necessary skills, etc. for correct semantic searches.
  • diff -- Used to declare the relative difficulty to achieve the title. See Property:title difficulty is for information on how to determine the value.
  • Req1 ... Req11 -- Each line (note, NO = sign) is the wikitext for that particular title requirement, if more requirements than detailed here are needed, just add them to the particular title page (as if more was allowed) and add a comment on this template's talk page.
  • LEAVE UNUSED (and unneeded) values OUT COMPLETELY. (titlename for example is only needed if the titlename is different than the page-name, such as in Disambiguation issues)