Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
mNo edit summary
Line 21: Line 21:
 
| <code><nowiki>[[API CreateFrame]]</nowiki></code> || [[API CreateFrame]] || [[API CreateFrame|CreateFrame]]
 
| <code><nowiki>[[API CreateFrame]]</nowiki></code> || [[API CreateFrame]] || [[API CreateFrame|CreateFrame]]
 
|}
 
|}
Note that this only applies to default links (links without a specified caption text) -- if you wanted to do something particularly fancy, like {{item|Shadowmourne|Super-Shadowmourne}}, you'd still use our current syntax; and if you wanted a normal link, you could just append a pipe: <code><nowiki>[[Shadowmourne|]]</nowiki></code>. The choice of what to display for which pages is independent of the extension itself, so the examples above are not necessarily binding -- we could do use the {{item|Shadowmourne|icon=}} style for item links, for instance.
+
Note that this only applies to default links (links without a specified caption text) -- if you wanted to do something particularly fancy, like {{item|Shadowmourne|Super-Shadowmourne}}, you'd still use our current syntax; and if you wanted a normal link, you could just append a pipe: <code><nowiki>[[Shadowmourne|]]</nowiki></code>. The choice of what to display for which pages is independent of the extension itself, so the examples above are not necessarily binding -- we could use the {{item|Shadowmourne|icon=}} style for item links, for instance.
   
 
For wiki-related purposes, the links would behave as ordinary links -- not template/page transclusions, as the current item/loot/quality system works.
 
For wiki-related purposes, the links would behave as ordinary links -- not template/page transclusions, as the current item/loot/quality system works.

Revision as of 00:34, 10 November 2010

Forums: Village pump → Automatic link formatting

I am currently contemplating implementing an extension that'd allow us to alter how default ([[Page]]) links to a page look like on a per-page basis. Essentially, it'd allow you to type a basic link and get a formatted text output:

Wikitext Current Output Proposed Output
[[Shadowmourne]] Inv axe 113 [Shadowmourne] Inv axe 113 [Shadowmourne]
[[Nordrassil Wrath-Kilt]] Inv pants leather 23 [Nordrassil Wrath-Kilt] Inv pants leather 23 [Nordrassil Wrath-Kilt]
[[Quest:In Dreams]] Quest:In Dreams N [60] In Dreams
[[Tripping the Rifts]] Inv enchant voidsphere [Tripping the Rifts] Inv enchant voidsphere [Tripping the Rifts]
[[Enchant Weapon - Agility]] Enchant Weapon - Agility [Enchant Weapon - Agility]
[[Void Terror]] Void Terror Mob Void Terror
[[API CreateFrame]] API CreateFrame CreateFrame

Note that this only applies to default links (links without a specified caption text) -- if you wanted to do something particularly fancy, like Inv axe 113 [Super-Shadowmourne], you'd still use our current syntax; and if you wanted a normal link, you could just append a pipe: [[Shadowmourne|]]. The choice of what to display for which pages is independent of the extension itself, so the examples above are not necessarily binding -- we could use the [Shadowmourne] style for item links, for instance.

For wiki-related purposes, the links would behave as ordinary links -- not template/page transclusions, as the current item/loot/quality system works.

Do you have any thoughts, suggestions, or questions related to this? — foxlit (talk) 22:58, 9 November 2010 (UTC)

No thanks, I'd rather have a default choice that how we link now would show a link, not something colored in brackets and icons everywhere. --g0urra[T҂C] 23:05, 9 November 2010 (UTC)
I'm with gourra in this. As well, such a change decreases the consistency of how the markup is used, which makes it harder for people to jump in and change things and expect certain outputs for the person's input markup. Plus, this creates something of a dependency of an extension on templates, which is somewhat backward. --Sky (talk) 23:45, 9 November 2010 (UTC)
I'm not convinced that the "But I want a link by default!" case has much merit -- most links to database content are already formatted using those templates, to the point that it's the defacto default, only a much bigger pain for the editors to type. Check it out: Item, Achievement, Quest... seems like the majority of incoming links is passed through a formatting template anyway. Ultimately, I do not see article paragraphs becoming christmas trees because of this change -- moderation in formatting use is ensured by editors, and this doesn't make it particularly hard. It would be helpful if you could point out concrete pages that would prove troublesome here.
My personal opinion is that this change would vastly improve usability for editors: adding a quest/item/achievement link is no longer an exercise in "What is that link template called again? Do I want quest or questlong? What do I pass it? In what order? Is this a group quest or an elite quest? Screw it, I'm going home." -- the change makes it a simple "Do I want to draw attention to this link, or blend it in with the other text?" choice, and the behavior and syntax can be explained in a single sentence, rather than miles of template documentation. As an additional benefit, we get links that reflect article content, rather than the randomly-sprinkled instances of questlong/loot that may fall out of sync with the article they're linking to.
I don't consider "dependency of an extension on templates" to be an argument at all -- the extension is blissfully ignorant of templates, nor would it matter if it wasn't. — foxlit (talk) 00:24, 10 November 2010 (UTC)