PathfinderWiki:Templates

From PathfinderWiki
Compass rose.svg

This page is affiliated with the Templates project.
Project leader: Administrators
DiscussionPathfinderWiki talk:Templates.

Project goals

PathfinderWiki uses templates to simplify and standardize complex wiki formatting, automatically categorize content, or enable text to be repeated across many pages. This project aims to make templates work harder for PathfinderWiki, reducing the need for repetitive work and simplifying adherence to complex categorization.

Implementation

Autocategorization

When possible, templates that take a limited set of common parameters with relevant categories should automatically apply those categories. For instance, a {{Infobox/Book}} with the Rules parameter should detect if the book uses PFRPG or D&D 3.5 rules and categorize the book appropriately as Category:PFRPG sourcebooks or Category:D&D 3.5 sourcebooks.

Semantics

To enable consistent, intuitive edits, templates should allow for simple, semantic use. For instance, when building a list, it should be possible to use standard wiki markup for lists regardless of how it's rendered. Templates should abstract complex wiki code, HTML, and CSS.

Reusable content

If text needs to be consistently applied across many articles, such as a list or common reference, it should be templated.

Documenting templates

All templates should have some degree of documentation. The {{Documentation}} template provides much of the framework for rendering and linking documentation to templates.

Progress

Semantic navbox lists

Many navboxes used encoded text to produce horizontal lists. Most have been converted to use wikitext lists that are formatted with CSS. {{dot}} has been phased out. —Oznogon (talk) 06:41, 16 April 2015 (UTC)

Modernizing books for autocategorization

{{Book}} now performs most categorization on articles based on several attributes. Categorization is the focus of the sourcebook categorization project.

PathfinderWiki:Semantic Data Initiative now populates all book product infoboxes with structured data.

Reusing infobox code

The {{Infobox}} template allows infoboxes to reuse common formatting and structure wiki code and HTML. See Forum:New infobox template and {{Infobox/doc}} for more information. —Oznogon (talk) 06:41, 16 April 2015 (UTC)

Using {{File}} on media

Many media files in the File namespace do not contain a source, copyright, or license information. {{File}} makes it easy to add this information and categorize images, whether for content or to identify media that needs more information. To date, all biographical photos now have a {{File}} template at a minimum to identify which images lack copyright years or have suboptimal license information. -Oznogon (talk) 03:12, 16 November 2015 (UTC)

History

This project was started by Ant on 7 January 2009.