Template:PHLawHeading/doc

This template is used for the laws of the Philippines. This handles the headings of the pages, including adding the template, categorizing, and others.

Essentials

 * : the abbreviation of the law. This is to determine the layout of the heading, and other things. This is also used IRL when quoting a specific law. The abbreviations allowed are listed in the table below.
 * : the number of the law
 * : the number of the previous law in the series. Use this only if the previous law is NOT -1.
 * : the number of the next law in the series. Use this only if the next law is NOT +1.


 * : the year wherein the law was approved/passed/signed.
 * : the full title of the law. Don't alter the casing of the title (e.g. keep the italisized parts, don't turn the title into title case). Prioritizes the title property (P1476) in Wikidata (see below).
 * (optional if unavailable): the ordinal number (word form) of the congress.
 * (optional if unavailable): the ordinal number (word form) of the session of the congress.
 * (optional): the type of the session of the congress. Defaults to.
 * (optional): the place of the congress. Defaults to.
 * (optional if unavailable): the bills wherein the law was drafted. Usually seen on the top-right corner. Don't alter the casing and the wording, leave it as is. Separate each with.
 * (optional if unavailable): the text that states the date of the session
 * Example: Begun and held at the City of Manila on Saturday, the twenty-fifth day of May, nineteen hundred and forty-six
 * (optional): the law/s that this law is amending, if any. Use the template with  . For more information, go to Template:PHLawAmend.
 * (optional): the law/s that this law is repealing, if any. Use the template with  . For more information, go to Template:PHLawAmend.
 * (optional): more info about the law.
 * (only required for abbreviations that have in the title, see table below): the president who created this law. Must be one of the following:
 * for Emilio Aguinaldo
 * for Manuel L. Quezon
 * for Jose P. Laurel
 * for Sergio Osmeña
 * for Manuel Roxas
 * for Elpidio Quirino
 * for Ramon Magsaysay
 * for Carlos P. Garcia
 * for Diosdado Macapagal
 * for Ferdinand Marcos
 * for Corazon Aquino
 * for Fidel V. Ramos
 * for Joseph Estrada
 * for Gloria Macapagal Arroyo
 * for Benigno Aquino III
 * for Rodrigo Roa Duterte
 * for Rodrigo Roa Duterte
 * for Bongbong Marcos

Wiki-related (all are optional)

 * : the additional portal/s that the law is a part of. Separate each with.
 * : the additional category/categories that this law is a part of. Separate each with.
 * : link to the Wikipedia page
 * : the link to the Wikimedia Commons page
 * : link to the Wikimedia Commons category page
 * : link to the Wikiquotes page
 * : link to the Wikinews page
 * : link to the Wiktionary page
 * : link to the Wikibooks page
 * : link to the Wikiversity page
 * : link to the Wikipedia page
 * : link to the Wikispecies page
 * : link to the Wikivoyage page
 * : link to the Wikidata page
 * : link to the MetaWiki page

Advanced (all are optional)

 * : only add the template, without the format of the header of the law. Useful for pages that have a PDF/DJVU source, used in the main page.
 * : only add the format of the header of the law, without the template. Useful for pages that have a PDF/DJVU source, used in the first page of the source file.

Law types
These are the abbreviations for each law type.

Law parts
These are the abbreviations used for parts of a law.

Items on Wikidata
The infobox that this template creates pulls data from the Wikidata item that the page is linked to and displays it in the infobox. If these are not present, some data in the infobox will not show.
 * : value must be the Wikidata item for the law type.
 * required qualifier : value must be the number of the law, same with the template parameter.
 * : value must be the full title of the law, with the language set to English (en).
 * : value must be the short title of the law or no value (for laws that don't have a short title), with the language set to English (en).
 * : value must be the date when the law was approved, not the effectivity date.
 * : value/values must be the subject tackled by the law. Can be multiple values.
 * : value/values must be the sections the law. Can be multiple values. This is used for creating the table of contents box. Each value must have these three qualifiers:
 * : value must be the order of the section. Use dot notation to signify order. Examples:
 * Section 3 ->
 * Part IV Chapter XII Section 135 Subsection 2 ->  (assuming that Section 135 is the first section in Chapter XII)
 * Book I Title 3 Chapter 3 Section 2 Article 34 ->  (assuming that Article 34 is the fifth article in Section 2)
 * Part III Chapter I ->
 * : value must be the title of the section or no value if none
 * : value must be the abbreviated part word, as shown on the table above.