Template:Cite PH act

{{#invoke:Template wrapper|wrap

|_template = citation

|_exclude = author, chamber, number, folio, date, year, article, chapter, prefix

| author = (({{#switch:{{{chamber|}}}

| Act = Act

| CA = Commonwealth Act

| BP = Batas Pambansa

| PD = Presidential Decree

| PP = Presidential Proclamation

| LOI = Letter of Instruction

| EO = Executive Order

| RA = Republic Act

| HB = House Bill

| GR = G.R.

| AO = {{#if: {{{prefix|}}} | {{{prefix}}} }} Administrative Order

| JAO = {{#if: {{{prefix|}}} | {{{prefix}}} }} Joint Administrative Order

| BR = {{#if: {{{prefix|}}} | {{{prefix}}} }} Board Resolution

| ME = {{#if: {{{prefix|}}} | {{{prefix}}} }} Memorandum

| MC = {{#if: {{{prefix|}}} | {{{prefix}}} }} Memorandum Circular

| JMC = {{#if: {{{prefix|}}} | {{{prefix}}} }} Joint Memorandum Circular

| MO = {{#if: {{{prefix|}}} | {{{prefix}}} }} Memorandum Order

| DO = {{#if: {{{prefix|}}} | {{{prefix}}} }} Department Order

| DAO = {{#if: {{{prefix|}}} | {{{prefix}}} }} Department Administrative Order

| ORD = {{#if: {{{prefix|}}} | {{{prefix}}} }} Ordinance

| RES = {{#if: {{{prefix|}}} | {{{prefix}}} }} Resolution

| REG = {{#if: {{{prefix|}}} | {{{prefix}}} }} Regulation

| Republic Act

}}{{#if: {{{number|}}} |   |}}{{#if: {{{number|}}} | {{#ifeq: {{{chamber|}}}|BP|Blg. {{{number}}}|No. {{{number}}}}} | {{#if: {{{date|}}} | | {{error|Error: the {{code|number}} or {{code|date}} parameter must be specified for the {{tl2|cite PH act}} template}} }} }}))

| type = {{{folio|}}}

| date = {{#if: {{{date|}}} | {{{date}}} | {{#if: {{{year|}}} | {{{year}}} | {{error|Error: the {{code|date}} parameter cannot be empty for the {{tl2|cite PH act}} template}} }}}}

| chapter = {{#if:{{{article|}}}|Article {{{article}}}}}

}}

{{documentation}}