Template:Title\Old: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (added separate field for translation to avoid semantic wiki problems)
(updates and support for semantic subcategories and difficulties)
Line 14: Line 14:
{{ #if: {{{translation|}}} |
{{ #if: {{{translation|}}} |
: Translation - {{{translation}}} }}
: Translation - {{{translation}}} }}
{{ #if: {{{subcat|}}} | [[title subcategory is::{{{subcat}}}| ]]}}
{{ #if: {{{subcat2|}}} | [[title subcategory is::{{{subcat2}}}| ]]}}
{{ #if: {{{subcat3|}}} | [[title subcategory is::{{{subcat3}}}| ]]}}
{{ #if: {{{subcat4|}}} | [[title subcategory is::{{{subcat4}}}| ]]}}
{{ #if: {{{subcat5|}}} | [[title subcategory is::{{{subcat5}}}| ]]}}
{{ #if: {{{diff|}}} | [[title difficulty is::{{{diff}}}| ]]}}
{{ #if: {{{1|}}} |
{{ #if: {{{1|}}} |
: [[title requirement::{{strip|s={{{1}}} }}]] }}
: [[title requirement::{{strip|s={{{1}}} }}]] }}
Line 64: Line 70:
{{ #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.
#ifeq: {{{category}}} | Survival 1 | [[Category:Survival Titles]] }}{{
{{#ifeq: {{{category}}} | Survival 1 | [[title category is:::Category:Survival Titles| ]][[Category:Survival Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Survival 2 | [[Category:Survival Titles]] }}{{
{{#ifeq: {{{category}}} | Survival 2 | [[title category is:::Category:Survival Titles| ]][[Category:Survival Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Survival 3 | [[Category:Survival Titles]] }}{{
{{#ifeq: {{{category}}} | Survival 3 | [[title category is:::Category:Survival Titles| ]][[Category:Survival Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Blunt | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Blunt | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Ranged | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Ranged | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Brawling | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Brawling | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | GenEdged | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | GenEdged | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | SpecEdged | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | SpecEdged | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Thrown | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Thrown | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Pole | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Pole | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Slings | [[Category:Combat Titles]] }}{{
{{#ifeq: {{{category}}} | Slings | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
#ifeq: {{{category}}} | Shield | [[Category:Combat Titles]] }}
{{#ifeq: {{{category}}} | Shield | [[title category is:::Category:Combat Titles| ]][[Category:Combat Titles|{{PAGENAME}}]] }}
[[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| ]]}}
[[Category:{{{category}}} Titles|{{PAGENAME}}]][[Category:Titles|{{PAGENAME}}]]{{#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| ]]}}
}}
}}
|
|
Line 96: Line 102:
|femaleonly=<span style="color:orange;">yes</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>
|translation=
|translation=
|subcat=
....
|subcat5=
|diff=
|Req1
|Req1
|Req2
|Req2
Line 106: Line 116:
* 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>

Revision as of 16:59, 16 August 2008

USAGE Information:

{{title
   |page={{subst:PAGENAME}}
   |category=category
   |titlename=title[1]
   |maleonly=yes[2]
   |femaleonly=yes[2]
   |translation=
   |subcat=
   ....
   |subcat5=
   |diff=
   |Req1
   |Req2
   ....
   |Req11
 }}
  • [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 thingstm can happen if you enter 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)